package com.ccys.db.mapper;

import com.ccys.db.entity.TblBookingImage;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

/**
 * Created by Mybatis Generator on 2023/12/25
 */
public interface TblBookingImageMapper extends Mapper<TblBookingImage>, MySqlMapper<TblBookingImage> {

    /**
     * 获取文件名称
     *
     * @param bookingId bookingId
     * @param type 1:Symptom的图片 2:MC的pdf 9:RL的pdf 10:receipt的pdf 12:MEMO的pdf 13:prescription的pdf
     * @return
     */
    String findOneFileNameByBookingIdAndByType(@Param("bookingId") String bookingId,@Param("type") Integer type);

    String getIdByBookingId(String bookingId,Integer imageType);
}
